package com.itheima.test;

public class User {
    //属性
    private String username;
    private String passward;
    private String email;
    private String gender;
    private int age;


    //快捷键：alt + insert   用于setter and getter 和构造方法

    public User() {
    }

    public User(String username, String passward, String email, String gender, int age) {
        this.username = username;
        this.passward = passward;
        this.email = email;
        this.gender = gender;
        this.age = age;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return passward
     */
    public String getPassward() {
        return passward;
    }

    /**
     * 设置
     * @param passward
     */
    public void setPassward(String passward) {
        this.passward = passward;
    }

    /**
     * 获取
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取
     * @return gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }
}
